package com.cp_smss.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cp_smss.dao.DepartmentDAO;
import com.cp_smss.model.Department;
import com.cp_smss.service.DepartmentService;

@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService{

	@Autowired
	private DepartmentDAO departmentDAO;
	
	@Override
	public List<Department> getDepartments() {
		return departmentDAO.getDepartments();
	}

}
